package com.aaa.common.util;

/**
 * fileName:Constants
 * description:
 * author:zz
 * createTime:2020/8/28 15:40
 * version:1.0.0
 */
public class Constants {

    /**
     *返回值类型
     */
    public interface RESULT {
        //成功标识
        Integer SUCCESS = 200;
        Integer INNERERROR = 500;
        Integer NOTFOUND = 404;

        String SUCMESSAGE = "成功";
        String IEMESSAGE = "内部错误";
        String ERROR = "错误";
        //.....
    }
<<<<<<< HEAD

   //异常处理类型
    public static enum CustomException{
        SYS_EXCEPTION(5000, "系统处理异常"),
        ID_NOT_NULL(5001, "ID不能为NULL"),
        FIND_MODEL_BY_ID_ERROR(5002, "根据id查询数据时异常"),
        UNKOWN_EXCEPTION(5003, "未知异常"),
        DATA_NOT_EXIST(50004, "数据不存在"),
        INVALID_ARGUMENT(5005, "无效的参数"),
        TOKEN_NOT_NULL(5006, "TOKEN不能为NULL");
        //错误编码
        private int errorCode;
        //错误信息描述
        private String errorMessage;

        /**
         * 构造方法
         * @param errorCode
         * @param errorMessage
         */
        CustomException(int errorCode, String errorMessage) {
            this.errorCode = errorCode;
            this.errorMessage = errorMessage;
        }

        public int getErrorCode() {
            return errorCode;
        }

        public void setErrorCode(int errorCode) {
            this.errorCode = errorCode;
        }

        public String getErrorMessage() {
            return errorMessage;
        }

        public void setErrorMessage(String errorMessage) {
            this.errorMessage = errorMessage;
        }
    }
    //信息超市积分类型
    public interface InfoMarketIntegralType{
        Integer READNEWSTYPE=1;
        Integer LEAVEMSG=2;
        Integer MSGISTAKE=3;
        Integer LOGININFOMARKET=4;
    }
=======
   //其他类型
>>>>>>> beba69accfc9442827bff00d03330347a55cf525
}
